from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from python_residencia_rise.formularioApp.views import formulario, listar_formularios
from django.views.generic.simple import direct_to_template
from python_residencia_rise.empresaApp.views import listar_empresas,\
    nova_empresa
from python_residencia_rise.residenteApp.views import listar_residentes,\
    novo_residente
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'python_residencia_rise.views.home', name='home'),
    # url(r'^python_residencia_rise/', include('python_residencia_rise.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
     url(r'^formulario/$', formulario),
     url(r'^formulario/listar$', listar_formularios),
     url(r'^accounts/', include('registration.urls')),
     url(r'^$', direct_to_template, {'template' : 'index.html'}, 'index'),
#     url(r'^$', listar_formularios),
     url(r'^empresa/$',nova_empresa), 
     url(r'^empresa/listar$',listar_empresas),     
     url(r'^residentes/$', novo_residente),   
     url(r'^residentes/listar$', listar_residentes),
     #url(r'^residentes/{id}$', exibir_residente),   
     #url(r'^residentes/{id}/apagar$', apagar_residente),      
     #url(r'^residentes/{id}/editar$', editar_residente),

         
)
